%.ui.h: %.ui
$(AM_V_GEN) mkdir -p $(dir $@) \
- && $(top_builddir)/util/extract-strings$(BUILD_EXEEXT) $< > $@
+ && $(top_builddir)/util/extract-strings$(EXEEXT) $< > $@
#
# rules to generate built sources
if test $(srcdir) != .; then \
rm -f $(MAINTAINERCLEANFILES); \
rm -rf stock-icons; \
- rm -f extract-strings$(EXEEXT); \
rm -f $(template_headers); \
fi
template_headers = $(templates:.ui=.ui.h)
-extract_strings = $(top_builddir)/util/extract-strings
-
%.ui.h : %.ui
- $(AM_V_GEN) $(extract_strings) $< > $@
+ $(AM_V_GEN) $(top_builddir)/util/extract-strings$(EXEEXT) $< > $@
EXTRA_DIST += \
inspector.gresource.xml \
# The extract_strings tool is a build utility that runs on the build system.
-extract_strings_sources = extract-strings.c
-extract_strings_cppflags =
-extract_strings_cflags = $(GLIB_CFLAGS_FOR_BUILD)
-extract_strings_ldadd = $(GLIB_LIBS_FOR_BUILD)
-
-extract-strings$(EXEEXT): $(extract_strings_sources)
- @rm -f extract-strings
- $(AM_V_CCLD)$(CC_FOR_BUILD) $(extract_strings_cppflags) $(CPPFLAGS_FOR_BUILD) $(extract_strings_cflags) $(CFLAGS_FOR_BUILD) $^ $(LDFLAGS_FOR_BUILD) $(extract_strings_ldadd) $(LIBS_FOR_BUILD) -o $@
noinst_PROGRAMS = extract-strings
+extract_strings_SOURCES = extract-strings.c
+extract_strings_CFLAGS = $(GLIB_CFLAGS_FOR_BUILD)
+extract_strings_LDADD = $(GLIB_LIBS_FOR_BUILD)
+
-include $(top_srcdir)/git.mk